package com.gxa.saas.core.entity.dto.luoj;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PictureDTO implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为null")
    private String userId;

    /**
     * 图片地址
     */
    @NotEmpty(message = "图片地址不能为null")
    private String pictureName;

    /**
     * 关联商品表
     */
    @NotNull(message = "商品id不能为null")
    private Integer proId;

}
